
<?php $this->load->view('common/header');?>
<body class="padding_top">
<!-- head [[-->
<div class="head_box">
	<div class="bank_nav">
        <a href="<?php echo site_url('member/index');?>"><i class="ico"></i></a>
    </div>
    <div class="head_title">销售贷</div>
</div>
<!--]] head -->
<!-- loan [[-->
<div class="loan">
	<dl>
    	<dt>
        	<p>当前可用额度</p>
            <span><?php echo $member['user_money_real'];?></span>
        </dt>
        <dd>
        	<span class="f_l">
            	<p>销售贷总额度</p>
                <?php echo $member['user_money'];?>
            </span>
        	<span class="f_r">
            	<p>待还</p>
                <?php echo ($member['user_money']*100-$member['user_money_real']*100)/100;?>
            </span>
        </dd>
    </dl>
</div>
<div class="loan_list">
	<div class="title">记录</div>
    <ul>
        <?php if($logs){ ?>
            <?php foreach ($logs as $key => $val) {?>
            <li>
                <span class="f_l">
                    <p><?php echo $val['remark'];?></p>
                    <em><?php echo $val['ctime'];?></em>
                </span>
                <span class="f_r <?php if($val['type'] == 2){?> on <?php } ?>" ><?php if($val['type'] == 1){echo "-";}else{echo "+";}?><?php echo $val['user_money_num'];?></span>
            </li>
            <?php } ?>
        <?php } ?>
    </ul>
</div>
<!--]] loan -->
</body>
</html>
